Pool<'resource>Type

PackageAxial.Layers
A fixed-size set of eagerly provisioned resource instances, handed out round-robin.

Specification

Kind
Type
Members
3
Examples
0
NextSignature
this.Next
InstancesSignature
this.Instances
CountSignature
this.Count

Summary

NameSignatureSynopsis
Nextthis.NextReturns the next instance, distributing calls round-robin across every instance.
Instancesthis.InstancesEvery instance in the pool, e.g.
Countthis.CountThe number of instances in the pool.

Next

this.Next
Member
Returns the next instance, distributing calls round-robin across every instance.

Returns

'resource

Instances

this.Instances
Member
Every instance in the pool, e.g. to release or inspect them directly.

Returns

'resource seq

Count

this.Count
Member
The number of instances in the pool.

Returns

int